/**
 * 14/02/2014
 * 
 * StateBO
 */
package org.cuatrovientos.erp.business;

import java.util.List;

import org.cuatrovientos.erp.dao.DelegationDAOInterface;
import org.cuatrovientos.erp.model.Delegation;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Holds all the business logic for Role related management
 * @author Inaki Torres
 */
public class DelegationBO implements DelegationBOInterface {

	@Autowired
	private DelegationDAOInterface delegationDAO;

	@Override
	public Delegation selectById(int id) {
		return delegationDAO.selectById(id);
	}

	@Override
	public List<Delegation> selectAll() {
		return delegationDAO.selectAll();
	}

	@Override
	public List<Delegation> search(String description) {
		return delegationDAO.search(description);
	}

	@Override
	public void deleteById(int id) {
		delegationDAO.deleteById(id);
	}

	@Override
	public void insert(Delegation delegation) {
		delegationDAO.insert(delegation);
	}

	@Override
	public void update(Delegation delegation) {
		delegationDAO.update(delegation);
	}

	
	
}
